import myaxios from "../MyAxios";
import BASEURL from "../BaseUrl"

const JKTURL = BASEURL.JKTURL

const adminApi = {
    /**查询所有用户列表 */
    queryall(params) {
        let url = JKTURL + '/user1/list'
        return myaxios.get(url, params)
    },
    /**用户模糊查询（用户名手机) */
    queryByNameLike(params) {
        let url = JKTURL + '/user1/ByNamePhone'
        return myaxios.get(url, params)
    },

    /**修改用户信息 */
    update(params) {
        let url = JKTURL + '/user1/update'
        return myaxios.post(url, params)
    },
    del(params) {
        let url = JKTURL + '/user1/del'
        return myaxios.get(url, params)
    },
    add(params) {
        let url = JKTURL + '/user1/register'
        return myaxios.post(url, params)
    },
    queryById(params) {
        let url = JKTURL + '/user1/ById'
        return myaxios.get(url, params)
    }


}
export default adminApi;